package br.com.wagnerfull.precoimovel.dao;

import java.io.Serializable;

import br.com.wagnerfull.precoimovel.cadastro.Incc;

import android.database.Cursor;
import android.database.sqlite.SQLiteDatabase;

public class DAOIncc extends DAOMobile implements Serializable {

	/**
	 * 
	 */
	private static final long serialVersionUID = -2530585406162283816L;

	public DAOIncc(String tabela, SQLiteDatabase database,
			EntidadeMobile novaInstancia) {
		super(tabela, database, novaInstancia);
		// TODO Auto-generated constructor stub
	}

	@Override
	protected EntidadeMobile prepararDados(Cursor c) {
		Incc incc = new Incc();
		incc.setId(c.getInt(c.getColumnIndex("id")));
		incc.setCompetencia(c.getLong(c.getColumnIndex("competencia")));
		incc.setMes(c.getLong(c.getColumnIndex("mes")));
		incc.setAno(c.getLong(c.getColumnIndex("ano")));
		incc.setIndice(c.getFloat(c.getColumnIndex("indice")));
		return incc;
	}

}
